<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<title>双城记</title>
	<link rel="stylesheet" href="map.css"/>
	<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.3&key=e227fa9bae1863b86b754c1cd953d389"></script>
	<script type="text/javascript" src="config.js"></script>
	<script type="text/javascript" src="mapInit.js"></script>
	<script type="text/javascript" src="marker.js"></script>
	<script type="text/javascript" src="keySearch.js"></script>
    <script type="text/javascript" src="polygonSearch.js"></script>
</head>
<body onLoad="showCityInfo()">
	<!-- 地图层 -->
	<div id="mapDiv" class="mapContainer"></div>
	<!-- 用户输出模块 -->
		<!-- A place -->
	<div id="aTipDiv" class="tip">
		<img src="img/A.png" alt="Me"></img>
		<p style="color: #859615">请输入我所在地<br/>关键位置信息：地铁，公交站，标志性建筑物</p>
        <input type="text" id="keyword_A" name="keyword_A" value="" onkeydown="doAEvent(event)"/>
	</div>
	<div id="result_A" name="result_A" class="result"></div>
		<!-- B place -->
	<div id="bTipDiv" class="tip">
		<img src="img/B.png" alt="TA"></img>
		<p style="color: #859615">请输入TA所在地<br/>关键位置信息：地铁，公交站，标志性建筑物</p>
        <input type="text" id="keyword_B" name="keyword_B" value="" onkeydown="doBEvent(event)"/>
<!--		<input type="text" id="keyword_B" name="keyword_B" value=""/>-->
	</div>
	<div id="result_B" name="result_B" class="result"></div>
		<!-- C place -->
	<div id="cTipDiv" class="tip">
		<img src="img/C.png" alt="Where"></img>
		<p style="color: #859615">约会场所</p>
        <input type="button" name="food" value="美食" onClick="findFood()"/>
        <input type="button" name="cafe" value="咖啡厅" onClick="findCafe()"/>
        <input type="button" name="movie" value="电影院" onClick="findMovie()"/>
        <input type="button" name="billiards" value="台球厅" onClick="findBilliards()"/>
	</div>
	<!-- JS main() -->
	<script type="text/javascript">	
		(function(exports){
			initMap();
		})(window);
		document.getElementById("keyword_A").onkeyup = doAEvent;
        document.getElementById("keyword_B").onkeyup = doBEvent;
	</script>
</body>
</html>